home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / edit / tde40.zip / bj_ctype.c next >
C/C++ Source or Header  |  1994-06-05  |  529b  |  30 lines

  1. /*
  2.  * Editor:      TDE, the Thomson-Davis Editor
  3.  * Filename:    myctype.c
  4.  * Compiled by: Byrial Jensen
  5.  *
  6.  * This file redefines the two standard library files tolower and toupper
  7.  */
  8.  
  9.  
  10. #include "tdestr.h"
  11. #include "common.h"
  12.  
  13.  
  14. int  bj_tolower( int c )
  15. {
  16.    if (c & 0xFF00)
  17.       return( c );
  18.    else
  19.       return( bj_isupper( c ) ? (int)upper_lower[c] : c );
  20. }
  21.  
  22.  
  23. int  bj_toupper( int c )
  24. {
  25.    if (c & 0xFF00)
  26.       return( c );
  27.    else
  28.       return( bj_islower( c ) ? (int)upper_lower[c] : c );
  29. }
  30.